﻿using System;
using System.Runtime.InteropServices;

namespace Vtron.HipcConfigurationTools.Domain
{
    /// <summary>
    /// 查询当前分辨率的请求
    /// </summary>
    /// <remarks>
    /// 消息		解码端获取编码端分辨率
    /// ID	请求：0x8201 应答：0x8202
    /// 方向	解码端->编码端
    /// typedef  struct
    /// {
    ///     T_HIPC_NET_HEADER	   head;      //协议头
    ///     Int8    channel;     //  
    ///     Int8     type;             //0:NAL 1:PAL
    ///     Int16   width;        //宽度
    ///     Int16   height;       //高度 
    /// } T_HIPC_VIDEO_RESOLUTION_REQ;
    /// </remarks>
    [Serializable]
    [StructLayout(LayoutKind.Sequential, Pack = 1)]
    public struct T_HIPC_VIDEO_RESOLUTION_REQ
    {
        #region Fields

        /// <summary>
        /// 网络协议数据头
        /// </summary>
        public T_HIPC_NET_HEADER head;

        /// <summary>
        /// 通道号
        /// </summary>
        /// <remarks>
        /// 0:NAL
        /// 1:PAL
        /// </remarks>
        public byte channel;

        /// <summary>
        /// 类型
        /// </summary>
        public byte type;

        /// <summary>
        /// 宽度
        /// </summary>
        public Int16 width;

        /// <summary>
        /// 高度
        /// </summary>
        public Int16 height;

        #endregion
    }
}
